package com.yue.authorization;

import com.yue.authorization.config.RootConfig;
import com.yue.authorization.config.WebConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/7/22<br/>
 *
 * @author QiuYang
 */
public class MainConfig extends AbstractAnnotationConfigDispatcherServletInitializer{
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[] {RootConfig.class};
    }

    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[] {WebConfig.class};
    }

    protected String[] getServletMappings() {
        return new String[] {"/auth"};
    }
}
